Skip to content

docs: correct get_procs() HA limitation note - #530

Merged
jmwoliver merged 2 commits into
mainfrom
docs/get-procs-ha-note
Nov 6, 2026
Merged

jmwoliver merged 2 commits into
mainfrom
docs/get-procs-ha-note

Conversation

@jmwoliver

Copy link
Copy Markdown
Contributor

Fixes #529.

The get_procs() docs said it only returns data for the server that responds to the request in an HA cluster. That's no longer true: GET /__api__/metrics/procs builds its list from the shared database, so it returns processes from every node and every execution mode (including off-host / Kubernetes).

This PR:

  • Removes the HA limitation note and says that results cover all nodes and execution modes.
  • Adds caveats: usage metrics are the last values each process reported, so they may be stale or NA; processes that ended recently but haven't been finalized may still appear; the endpoint is internal and unversioned, so it may change.
  • Adds a NEWS entry.

Docs only, no code changes.

jmwoliver and others added 2 commits November 6, 2026 11:47
get_procs() returns processes across all nodes in an HA cluster and
across execution modes. Remove the outdated note and document caveats
about stale metrics, unfinalized processes, and the unversioned endpoint.
Comment thread R/get.R
#' * Processes that have recently ended but have not yet been finalized may
#' still appear in the results.
#' * This function uses an internal, unversioned API endpoint, so its behavior
#' and the returned columns may change in future versions of Connect.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not blocking, since this was already wrong before this PR. The @return list just below doesn't match what get_procs() returns. Worth a follow-up issue?

  • It uses camelCase names (appId, cpuCurrent, ...), but the server sends snake_case (app_id, cpu_current, ...), and get_procs() keeps them as-is.
  • It lists cpuTotal, which the server doesn't send.
  • It leaves out hostname, job_key, image, start_time, and heartbeat.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, issue documented here: #532

@jmwoliver
jmwoliver merged commit 9849877 into main Nov 6, 2026
13 checks passed
@jmwoliver
jmwoliver deleted the docs/get-procs-ha-note branch November 6, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

get_procs() docs incorrectly say results are limited to the responding HA node

3 participants